package cn.edu.nuc.creditSystem.bean;
/**
 * 用于返回校验信息
 * @author 力
 * 2017年2月4日 上午10:06:41
 */
public class Msg {
	/**
	 * 成功状态
	 */
	public static final int success=1;
	/**
	 * 成功状态
	 */
	public static final int error=-1;
	/**
	 * 行定位
	 */
	private int row;
	/**
	 * 具体错误定位
	 */
	private int index;
	/**
	 * 返回信息状态码
	 */
	private int state;
	/**
	 *	信息提示
	 */
	private String msg;
	
	public int getRow() {
		return row;
	}
	public void setRow(int row) {
		this.row = row;
	}
	public Msg() {
		super();
	}
	public Msg(int row, int index) {
		super();
		this.row = row;
		this.index = index;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public Msg(int state, String msg) {
		this.state = state;
		this.msg = msg;
	}
	public int getIndex() {
		return index;
	}
	public void setIndex(int index) {
		this.index = index;
	}
}
